package dk.viauc.friendlocator;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

public class LocationListenerImpl implements LocationListener {

	Handler handler;
	
	public LocationListenerImpl(Handler handler) {
		this.handler = handler;
	}
	
	@Override
	public void onLocationChanged(Location location) {
		Message msg = new Message();
		msg.obj = location;
		handler.sendMessage(msg);
	}

	@Override
	public void onProviderDisabled(String provider) {
		
	}

	@Override
	public void onProviderEnabled(String provider) {
		
	}

	@Override
	public void onStatusChanged(String provider, int status, Bundle extras) {
		
	}

}
